package com.hps.notifydemo.bank1.spring;

import com.hps.notifydemo.bank1.entity.AccountPay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author hepengshuai
 * @date 2019/12/14 15:53
 */
@FeignClient(name = "dtx-notifymsg-demo-pay", fallback = PayClientFallback.class)
public interface PayClient {

    @GetMapping("/pay/payresult/{txNo}")
    AccountPay payResult(@PathVariable("txNo") String txNo);
}
